package com.ruoyi.web.mapper;

import java.util.List;
import com.ruoyi.web.domain.OldDrugDisease;
import org.apache.ibatis.annotations.Param;

/**
 * 药品疾病关联Mapper接口
 * 
 * @author drx
 * @date 2024-03-06
 */
public interface OldDrugDiseaseMapper 
{
    /**
     * 查询药品疾病关联
     * 
     * @param id 药品疾病关联主键
     * @return 药品疾病关联
     */
    public OldDrugDisease selectOldDrugDiseaseById(Long id);

    /**
     * 查询药品疾病关联列表
     * 
     * @param oldDrugDisease 药品疾病关联
     * @return 药品疾病关联集合
     */
    public List<OldDrugDisease> selectOldDrugDiseaseList(OldDrugDisease oldDrugDisease);

    /**
     * 新增药品疾病关联
     * 
     * @param oldDrugDisease 药品疾病关联
     * @return 结果
     */
    public int insertOldDrugDisease(OldDrugDisease oldDrugDisease);

    /**
     * 修改药品疾病关联
     * 
     * @param oldDrugDisease 药品疾病关联
     * @return 结果
     */
    public int updateOldDrugDisease(OldDrugDisease oldDrugDisease);

    /**
     * 删除药品疾病关联
     * 
     * @param id 药品疾病关联主键
     * @return 结果
     */
    public int deleteOldDrugDiseaseById(@Param("ids")Long id,@Param("loginName") String longName);

    /**
     * 批量删除药品疾病关联
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOldDrugDiseaseByIds(@Param("ids")String[] ids,@Param("loginName") String longName);

    public int deleteOldDrugDiseaseByDrugId(@Param("drugId")Long drugId,@Param("loginName") String longName);
}
